import csv
with open('score.csv', 'w', encoding='utf-8') as f:
    # f.write('\njack,78')
    # f.write('\ntom,64')
    writer1=csv.writer(f)
    # writer1.writerow(['anby',72])
    # writer1.writerows([['anby1', 72],['anby2', 72],['anby3', 72]])
    f.write('\n')
    writer1.writerow(['anby', 72])
    # w=csv.DictWriter(f,fieldnames=["名字","成绩"])
    # w.writerow({"名字":"mandy","成绩":67})
    # w.writerows([{"名字": "mandy1", "成绩": 67}, {"名字": "mandy2", "成绩": 67}, {"名字": "mandy3", "成绩": 67}])
